package com.budwk.app.sqfw.vo;

import com.budwk.app.util.poiUtils.nutzBeanUtils.NutzIocUtils;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.ioc.impl.PropertiesProxy;

import java.io.Serializable;

/**
 * 荣耀app接口vo
 */

@Data
@Accessors(chain = true)
public class HonorAppVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String url;

    private String clientId;

    private String clientSecret;

    private String grantType;

    private String appId;


    public static HonorAppVo init() {
        PropertiesProxy propertiesProxy = NutzIocUtils.getBean(PropertiesProxy.class);
        HonorAppVo appVo = new HonorAppVo();
        appVo.setAppId(propertiesProxy.get("honor.interface.app.appId"))
                .setUrl(propertiesProxy.get("honor.interface.app.url"))
                .setClientId(propertiesProxy.get("honor.interface.app.clientId"))
                .setClientSecret(propertiesProxy.get("honor.interface.app.clientSecret"))
                .setGrantType(propertiesProxy.get("honor.interface.app.grantType"));
        return appVo;
    }


}
